<?php
/**
 * 生成坐标列表
 */
require './include/config.php';
$client='116.455888,39.899355';
$limit = 10000;
isset($_GET['client']) && $client = $_GET['client'];
isset($_GET['limit']) && $limit = intval($_GET['limit']);
$list = getGeo($client, $limit);
// ksort($list);
// $i=0;
// foreach ($list as $k => $v) {
//     $i++;
//     if (in_array($i, array(1,50,100,5001,5100,9901,9950,10000))) {
//         $clients[$k] = $k;
//     }
// }
// $return = array();
// foreach ($clients as $client) {
//     $return  = array_merge($return, getGeo($client, 600, 0, array('x' => 0.03,'y' => 0.02)));
// }
$list = array_slice($list, 0, 20000);
echo json_encode($list);
